package com.ctl.szmd.szmd.feature_wm.ui.viewmodel.pager1

import androidx.lifecycle.LiveData
import androidx.lifecycle.asLiveData
import androidx.paging.PagingData
import com.ctl.szmd.szmd.feature_wm.data.bean.FulianSubOrgInfoForListForApiList
import com.ctl.szmd.szmd.feature_wm.data.repository.WmRepository
import com.ctl.szmd.szmd.feature_wm.ui.base.BaseWmViewModel

/**
 * created by : chentl
 * Date: 2020/08/17
 */
class SubOrgViewModel(private val repository: WmRepository) : BaseWmViewModel() {
    fun getListData(dep_id: String?): LiveData<PagingData<FulianSubOrgInfoForListForApiList>> =

        repository.getFulianAppIndexSubOrgContentInfoList(dep_id).asLiveData()
}